home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Battlezone II / Disk1 / data1.cab / Program_Executable_Files / data.pak / config_SHELL_bzshell_single.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  4.5 KB  |  247 lines

  1. // ================
  2. // BATTLEZONE SHELL
  3. // ================
  4.  
  5. //
  6. // CREATE SHELL SINGLE PLAYER PAGE
  7. //
  8. CreateControl("ShellSingle", "WINDOW")
  9. {
  10.     // inherit root window's dimensions
  11.     Geometry("PARENTWIDTH", "PARENTHEIGHT");
  12.  
  13.     // set window style
  14.     Style("TRANSPARENT");
  15.  
  16.     //
  17.     // create the "abort" button
  18.     //
  19.     CreateControl("Abort", "BUTTON")
  20.     {
  21.         ColorGroup("MAGENTA");
  22.  
  23.         Geometry("RIGHT", "BOTTOM");
  24.         Position(-520, -15);
  25.         Size(100, 15);
  26.         BorderSize(5);
  27.         BevelSize(3);
  28.         Text("Abort");
  29.         Font("SMALL");
  30.         JustifyText("CENTER");
  31.         Style("ROLLOVER", "OUTLINE");
  32.         //Projector(0);
  33.         Cursor("Highlight");
  34.         NotifyParent("Button::Press", "Abort");
  35.     }
  36.  
  37.     //
  38.     // create the "Options" button
  39.     //
  40.     CreateControl("Options", "BUTTON")
  41.     {
  42.         ColorGroup("MAGENTA");
  43.  
  44.         Geometry("RIGHT", "BOTTOM");
  45.         Position(-395, -15);
  46.         Size(100, 15);
  47.         BorderSize(5);
  48.         BevelSize(3);
  49.         Text("Options");
  50.         Font("SMALL");
  51.         JustifyText("CENTER");
  52.         Style("ROLLOVER", "OUTLINE");
  53.         //Projector(0);
  54.         Cursor("Highlight");
  55.         NotifyParent("Button::Press", "Options");
  56.     }
  57.  
  58.     //
  59.     // create the "Objectives" display
  60.     //
  61.  
  62.     CreateControl("Objectives", "WINDOW")
  63.     {
  64.         Position(20, 30);
  65.         Size(240, 140);
  66.         BorderSize(10);
  67.         BevelSize(5);
  68.         TabSize(150, 10);
  69.         Style("OUTLINE");
  70.         //Projector(7);
  71.         Title("Mission Objectives");
  72.  
  73.          CreateControl("Objectives", "LISTBOX")
  74.          {
  75.             ColorGroup("BACKGROUND");
  76.              Position(10, 10);
  77.              Size(220, 120);
  78.             CellSize(300, 10);
  79.             Style("NOSELECTION", "TRANSPARENT");
  80.              BorderSize(5);
  81.              BevelSize(5);
  82.              Font("SMALL");
  83.              UseVar("shell.single.objectives");
  84.              Cursor("Highlight");
  85.          }            
  86.     }
  87.  
  88.     //
  89.     // create the "world" display
  90.     //
  91.     CreateControl("World", "WINDOW")
  92.     {
  93.         Geometry("RIGHT", "TOP");
  94.         Position(-20, 30);
  95.         Size(330, 140);
  96.         BorderSize(10);
  97.         BevelSize(5);
  98.         TabSize(150, 10);
  99.         Style("LEFTTAB", "OUTLINE");
  100.         //Projector(2);
  101.         Title("World Data");
  102.  
  103.         //
  104.         // create the planet object viewer
  105.         //
  106.         CreateControl("Planet", "VIEWER")
  107.         {
  108.             ColorGroup("BACKGROUND");
  109.  
  110.             Position(0, 0);
  111.             Size(160, 140);
  112.             BorderSize(5);
  113.             BevelSize(3);
  114.             UseVar("shell.single.planet");
  115.             SetAmbientColor(1.0, 1.0, 1.0);
  116.             SetDiffuseColor(1.0, 1.0, 1.0);
  117.             SetDiffuseDir(2.0, -5.0, 1.0);
  118.             SetModelDistance(50.0);
  119.             SetModelInclination(-30.0);
  120.             SetModelRotation(60.0);
  121.         }
  122.  
  123.         //
  124.         // create the research item list
  125.         //
  126.  
  127.         CreateControl("Title", "STATIC")
  128.         {
  129.              ColorGroup("LISTBOX");
  130.              Geometry("RIGHT");
  131.              Position(0, 0);
  132.              Size(150, 140);
  133.             Style("TRANSPARENT");
  134.             Font("SMALL");
  135.             JustifyText("LEFT");
  136.             UseVar("shell.single.planetInfo");
  137.         }
  138.     }
  139.  
  140.     CreateControl("Story", "MULTITAB")
  141.     {
  142.         Geometry("LEFT", "BOTTOM");
  143.         Position(20, -60);
  144.         Size(600, 200);
  145.         BorderSize(10);
  146.         BevelSize(5);
  147.         TabSize(150, 10);
  148.         Style("OUTLINE");
  149.         //Projector(1);
  150.         TitleFont("MEDIUM");
  151.         AddTab("Briefing", "Tab1");
  152.         AddTab("Command Update", "Tab2");
  153.         AddTab("Messages", "Tab3");
  154.         //shell.single.update
  155.         //shell.single.briefing
  156.         //shell.single.messages
  157.     }
  158.     
  159.     //
  160.     // create the "launch" button
  161.     //
  162.     CreateControl("Launch", "BUTTON")
  163.     {
  164.         ColorGroup("MAGENTA");
  165.  
  166.         Geometry("RIGHT", "BOTTOM");
  167.         Position(-20, -15);
  168.         Size(100, 15);
  169.         BorderSize(5);
  170.         BevelSize(3);
  171.         Text("Launch");
  172.         Font("SMALL");
  173.         JustifyText("CENTER");
  174.         Style("ROLLOVER", "OUTLINE");
  175.         //Projector(4);
  176.         Cursor("Highlight");
  177.         NotifyParent("Button::Press", "Launch");
  178.     }
  179.  
  180.     //
  181.     // create the "Load" button
  182.     //
  183.     CreateControl("Load", "BUTTON")
  184.     {
  185.         ColorGroup("MAGENTA");
  186.  
  187.         Geometry("RIGHT", "BOTTOM");
  188.         Position(-145, -15);
  189.         Size(100, 15);
  190.         BorderSize(5);
  191.         BevelSize(3);
  192.         Text("Load");
  193.         Font("SMALL");
  194.         JustifyText("CENTER");
  195.         Style("ROLLOVER", "OUTLINE");
  196.         //Projector(4);
  197.         Cursor("Highlight");
  198.         NotifyParent("Button::Press", "Load");
  199.     }
  200.  
  201.     //
  202.     // create the "Archive" button
  203.     //
  204.     CreateControl("Archive", "BUTTON")
  205.     {
  206.         ColorGroup("MAGENTA");
  207.  
  208.         Geometry("RIGHT", "BOTTOM");
  209.         Position(-270, -15);
  210.         Size(100, 15);
  211.         BorderSize(5);
  212.         BevelSize(3);
  213.         Text("Archive");
  214.         Font("SMALL");
  215.         JustifyText("CENTER");
  216.         Style("ROLLOVER", "OUTLINE");
  217.         //Projector(4);
  218.         Cursor("Highlight");
  219.         NotifyParent("Button::Press", "Archive");
  220.     }
  221.  
  222.     //
  223.     // handle the "launch" event
  224.     //
  225.     OnEvent("Launch")
  226.     {
  227.         Cmd("shell.single.launch");
  228.     }
  229.  
  230.     //
  231.     // handle the "options" event
  232.     //
  233.     OnEvent("Options")
  234.     {
  235.  
  236.     }
  237.  
  238.     //
  239.     // handle the "abort" event
  240.     //
  241.     OnEvent("Abort")
  242.     {
  243.         FadeOut();
  244.         FadeIn("|ShellMain");
  245.     }
  246. }
  247.